Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed default FileAccess.Read parameter for IFile.OpenStreamAsync #49

Merged
merged 2 commits into from
Mar 9, 2024

Conversation

Arlodotexe
Copy link
Owner

This PR closes #42.

Breaking

The default FileAccess.Read parameter for IFile.OpenStreamAsync has been removed. This is primarily to avoid confusion about why the default returned stream can't be written to, but follows the concept that simply opening a stream implies nothing about read/write preferences for that resource, so no default value should be used.

New

Extensions methods for IFile.OpenReadAsync, IFile.OpenWriteAsync and IFile.OpenReadWriteAsync have been added.

@Arlodotexe Arlodotexe self-assigned this Mar 9, 2024
@Arlodotexe Arlodotexe merged commit 7b8385b into main Mar 9, 2024
1 check passed
@Arlodotexe Arlodotexe deleted the remove-default-accessmode-on-ifile branch March 9, 2024 20:01
@Arlodotexe Arlodotexe mentioned this pull request Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove default value for accessMode flag in IFile
1 participant